<!DOCTYPE html>

<html class="no-js">

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/index.js"></script>
  <script src="https://cdn.staticfile.org/echarts/4.2.1-rc1/echarts.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/theme-chalk/index.css" />
  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>
</head>

<body>
  <div id="app">
    <avue-echart-pie :theme='theme' :option="option" :data="data"></avue-echart-pie>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        theme: "",
        data: [{
          value: 335,
          name: '直接访问'
        },
        {
          value: 310,
          name: '邮件营销'
        },
        {
          value: 234,
          name: '联盟广告'
        },
        {
          value: 135,
          name: '视频广告'
        },
        {
          value: 1548,
          name: '搜索引擎'
        }
        ],
        option: {
          width: '100%',
          height: 600,
          legend: true,
          title: '手机大比拼',
          subtitle: '纯属虚构',
          labelShow: true,
          radius: true,
          "barColor": [{
            "color1": "red",
          },
          {
            "color1": "blue",
          },
          {
            "color1": "yellow",
          },
          {
            "color1": "#222",
          },
          {
            "color1": "#564AA3",
          }
          ]
        },

      }
    },
    methods: {},
  })

</script>

</html>